package com.doge.controller.wx;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseRespVo;
import com.doge.bean.pojo.brand.Brand;
import com.doge.service.wx.brand.WxBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: doge
 * @description: 微信的查询品牌请求
 * @author: Mr.Jiang
 * @create: 2021-12-02 10:46
 **/
@RestController
@RequestMapping("wx/brand")
public class WxBrandController {
    @Autowired
    WxBrandService wxBrandService;
    @RequestMapping("list")
    public BaseRespVo list(Integer page,Integer limit){
        BaseData baseData=wxBrandService.list(page,limit);
        return BaseRespVo.ok(baseData);
    }
    @RequestMapping("detail")
    public BaseRespVo detail(Integer id){
        Brand brand=wxBrandService.detail(id);
        return BaseRespVo.ok(brand);
    }
}
